#include <bits/stdc++.h>

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    
    int low, mid, high;
    low = min(min(a, b), c);
    high = max(max(a, b), c);
    mid = a + b + c - low - high;
    
    cout << low << " " << mid << " " << high;
    
    return 0;
}
